import CommonUtil from "../commons/utils/common-util";
import Environments from "../commons/utils/env-util";

/**
 * 使用控制台打印
 * @param handle  日志输出
 */
export default function useConsolePrint(handle: Function = () => { }) {
    const showConsole = Environments.getEvnProp("VITE_SHOW_CONSOLE");
    CommonUtil.toBoolean(showConsole) && handle();
}